﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="address_new.aspx.cs" Inherits="AnyOffice.general.system.address.address_new" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>新建联系人</title>
    <meta name="CODE_LANGUAGE" content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
    <script src="/module/date_selector/popcalendar.js"></script>
    <script src="/aspnet_client/core/function.js"></script>
    <script language="JavaScript">
        function CheckForm() {
           

            if (document.Form1.txtDeptName.value == "") {
                alert("机构不能为空！");
                document.Form1.txtDeptName.focus();
                return (false);
            }
            if (document.Form1.txtName.value == "") {
                alert("负责人姓名不能为空！");
                document.Form1.txtName.focus();
                return (false);
            }

            return (true);
        }
    </script>
</head>
<body class="bodycolor" topmargin="5">
    <form id="Form1" method="post" runat="server">
    <asp:Panel ID="pnlMain" runat="server">
        <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
            <tr>
                <td class="Big">
                    <img src="/images/menu/address.gif" align="absMiddle"><span class="big3"> 新建联系人</span>
                </td>
            </tr>
        </table>
        <br>
        <table border="0" width="450" cellpadding="2" cellspacing="1" align="center" class="small"
            bgcolor="#000000">
            <tbody>
                <tr>
                    <td nowrap class="TableHeader" colspan="2">
                        <b>&nbsp;分组</b>
                    </td>
                </tr>
                <tr>
                    <td nowrap class="TableData">
                        分组：
                    </td>
                    <td class="TableData">
                        <asp:DropDownList ID="ddlGroupId" runat="server" CssClass="BigSelect">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td nowrap class="TableHeader" colspan="2">
                        <b>&nbsp;基本信息</b>
                    </td>
                </tr>
                <%--<tr>
						<td nowrap class="TableData">
							性别：</td>
						<td class="TableData">
							<asp:DropDownList id="ddlSex" runat="server" CssClass="BigSelect">
								<asp:ListItem Value="True" Selected="True">男</asp:ListItem>
								<asp:ListItem Value="False">女</asp:ListItem>
							</asp:DropDownList>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">生日：</td>
						<td class="TableData">
							<input type="text" size="10" maxlength="20" class="BigInput" id="txtBirthday" runat="server">
							<IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtBirthday,'yyyy-mm-dd','');"
								src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
						</td>
					</tr>--%>
                <%--<tr>
						<td nowrap class="TableData">
							配偶：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtMate" runat="server">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							子女：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtChild" runat="server">
						</td>
					</tr>--%>
                <%--<tr>
						<td nowrap class="TableHeader" colspan="2"><b>&nbsp;联系方式</b></td>
					</tr>--%>
                <tr>
                    <td nowrap class="TableData">
                        机构名称：
                    </td>
                    <td class="TableData">
                        <input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptName" runat="server"><span style="color:Red">*</span>
                    </td>
                </tr>
                <tr>
                    <td nowrap class="TableData">
                        机构地址：
                    </td>
                    <td class="TableData">
                        <input type="text" size="40" maxlength="200" class="BigInput" id="txtDeptAddr" runat="server">
                    </td>
                </tr>
                <tr>
                    <td nowrap class="TableData">
                        负责人：
                    </td>
                    <td class="TableData">
                        <input type="text" size="20" maxlength="50" class="BigInput" id="txtName" runat="server"><span style="color:Red">*</span>
                    </td>
                </tr>
                <tr>
                    <td nowrap class="TableData">
                        职务：
                    </td>
                    <td class="TableData">
                        <input type="text" size="25" maxlength="50" class="BigInput" id="txtMinistration"
                            runat="server">
                    </td>
                </tr>
                <%--<tr>
						<td nowrap class="TableData">
							单位邮编：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptPost" runat="server">
						</td>
					</tr>--%>
                <tr>
                    <td nowrap class="TableData">
                        联系电话：
                    </td>
                    <td class="TableData">
                        <input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptTel" runat="server">
                    </td>
                </tr>
                <tr>
                    <td nowrap class="TableData">
                        值班电话：
                    </td>
                    <td class="TableData">
                        <input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptFax" runat="server">
                    </td>
                </tr>
                <%--	<tr>
						<td nowrap class="TableHeader" colspan="2"><b>&nbsp;联系方式（家庭）</b></td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							家庭住址：</td>
						<td class="TableData">
							<input type="text" size="40" maxlength="200" class="BigInput" id="txtHomeAddr" runat="server">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							家庭邮编：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtHomePost" runat="server">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							家庭电话：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtHomeTel" runat="server">
						</td>
					</tr>--%>
                <tr>
                    <td nowrap class="TableData">
                        手机：
                    </td>
                    <td class="TableData">
                        <input type="text" size="25" maxlength="50" class="BigInput" id="txtMobile" runat="server">
                    </td>
                </tr>
                <%--<tr>
						<td nowrap class="TableData">
							小灵通：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtBp" runat="server">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							电子邮件：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="100" class="BigInput" id="txtEmail" runat="server">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							QQ号码：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtOicq" runat="server">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							MSN：</td>
						<td class="TableData">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtMsn" runat="server">
						</td>
					</tr>--%>
                <tr>
                    <td nowrap class="TableHeader" colspan="2">
                        <b>&nbsp;备 注</b>
                    </td>
                </tr>
                <tr>
                    <td class="TableData" colspan="2">
                        <textarea cols="60" rows="5" class="BigInput" wrap="on" id="txtNote" runat="server"></textarea>
                    </td>
                </tr>
                <tr align="center" class="TableControl">
                    <td colspan="2" nowrap>
                        <input type="submit" value="保存" class="BigButton" onclick="return CheckForm();">&nbsp;&nbsp;
                        <input type="button" value="返回" class="BigButton" onclick="location='address.aspx?group_id=<%=ViewState["GroupId"]%>'">
                    </td>
                </tr>
            </tbody>
        </table>
    </asp:Panel>
    <asp:Literal ID="litMessage" runat="server"></asp:Literal>
    </form>
</body>
</html>
